import java.sql.SQLOutput;

public class MethodDemo09 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println("两个数的和是" + (a + b));

        int c = 1;
        int d = 2;
        System.out.println("两个数的和是" + (c + d));

        int e = 3;
        int f = 4;
        System.out.println("两个数的和是" + (e + f));

        //调用方法
        MethodDemo09.doSomeThing();
        doSomeThing();// 因为在同一个类下


    }


    /**
     * 定义一个名字是doSomeThing的方法
     */
    public static void doSomeThing() {
        System.out.println("HelloWorld");
    }
}
